<div class="preview_ads1" id="preview_ads1">
    <img id="preview_ads_image1" style="display:none"/>
    <div id="prview_ads_description1"></div>
</div>

<script type="text/javascript">
 var iframeUpload = new uploadIframe($('image_upload'));
 function keyUpAdsDescription(el){
    var text = el.get('value');
    $('prview_ads_description').set('text',text);
 }
 function uploadAds(){
     iframeUpload.submitForm();
 }
 function resultUploadIframe(data){
    if(data.error == false){
        var img = $('preview_ads_image');
        if(img){
            img.set('src',data.path);
            img.style.display = 'block';
        } 
        $('imageId').set('value',data.imageId);
        
    }
    else{
        ShowMsg(data.message);
    }
 }
    
</script>